//
//  WYHttpServer+CJAssets.m
//  Boss
//
//  Created by admin on 2018/9/19.
//  Copyright © 2018年 admin. All rights reserved.
//

#import "WYHttpServer+CJAssets.h"

@implementation WYHttpServer (CJAssets)
+(void)getEarningsSucessBlock:(void(^)(BOOL success,id response,NSString *errorMessage))completion
{
    AFHTTPSessionManager *manager=[[WYHttpServer sharedInstance] requestManager];
    NSMutableDictionary *parm=[[WYHttpServer sharedInstance] requestParameters];
    [[WYHttpServer sharedInstance] postOperationWithManger:manager Url:kUrlUserGetEarnings WithPara:parm Success:^(BOOL success, id response, NSString *errorMsg) {
        completion(success,response,errorMsg);
    }];
}

+(void)getTransferEarningsListWithCurrentPage:(NSString *)currentPage WithPageSize:(NSString *)pageSize SucessBlock:(void(^)(BOOL success,id response,NSString *errorMessage))completion
{
    AFHTTPSessionManager *manager=[[WYHttpServer sharedInstance] requestManager];
    NSMutableDictionary *parm=[[WYHttpServer sharedInstance] requestParameters];
    [parm setValue:pageSize forKey:@"pageSize"];
    [parm setValue:currentPage forKey:@"currentPage"];
    [[WYHttpServer sharedInstance] postOperationWithManger:manager Url:kUrlUserGetTransferEarningsList WithPara:parm Success:^(BOOL success, id response, NSString *errorMsg) {
        completion(success,response,errorMsg);
    }];
}

+(void)getTransferListWithCurrentPage:(NSString *)currentPage WithPageSize:(NSString *)pageSize WithType:(NSString *)type SucessBlock:(void(^)(BOOL success,id response,NSString *errorMessage))completion
{
    AFHTTPSessionManager *manager=[[WYHttpServer sharedInstance] requestManager];
    NSMutableDictionary *parm=[[WYHttpServer sharedInstance] requestParameters];
     [parm setValue:pageSize forKey:@"pageSize"];
     [parm setValue:currentPage forKey:@"currentPage"];
     [parm setValue:type forKey:@"type"];
    [[WYHttpServer sharedInstance] postOperationWithManger:manager Url:kUrlUserGetTransferList WithPara:parm Success:^(BOOL success, id response, NSString *errorMsg) {
        completion(success,response,errorMsg);
    }];
}








@end
